/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.persons.Medic;
import systole.exceptions.ExceptionDAO;
import systole.synchronization.remote.entities.MedicRemote;

/**
 *
 * @author Juan Manuel
 */
public interface MedicSyncBroker {

    /**
     * 
     * @param medicRemote
     * @throws ExceptionDAO 
     */
    public void saveMedicRemote(MedicRemote medicRemote) throws ExceptionDAO;    

    /**
     * 
     * @return MedicRemote list
     * @throws ExceptionDAO 
     */
    public List<MedicRemote> getMedicsToUpdate() throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public List<Medic> getMedicsToUpload() throws ExceptionDAO;

    /**
     * 
     * @param medic
     * @return
     * @throws ExceptionDAO
     */
    public MedicRemote getMedicRemoteByMedic(Medic medic) throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO
     */
    public int getLastRemoteMedicIdSynchronized() throws ExceptionDAO;

    /**
     * 
     * @param remoteId
     * @return
     * @throws ExceptionDAO
     */
    public Medic getMedicByRemoteId(int remoteId) throws ExceptionDAO;
}
